package com.ecut.property_project.service.suite;

import com.ecut.property_project.mapper.suite.SuiteHeadMapper;
import com.ecut.property_project.model.suite.SuiteHead;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SuiteHeadService{

    @Resource
    private SuiteHeadMapper suiteHeadMapper;

    
    public int deleteByPrimaryKey(String suiteId) {
        return suiteHeadMapper.deleteByPrimaryKey(suiteId);
    }

    
    public int insert(SuiteHead record) {
        return suiteHeadMapper.insert(record);
    }

    
    public int insertSelective(SuiteHead record) {
        return suiteHeadMapper.insertSelective(record);
    }

    public List<SuiteHead> selectAll(){ return suiteHeadMapper.selectAll(); }

    public List<SuiteHead> selectByPage(Integer page, Integer pageSize){return suiteHeadMapper.selectByPage(page,pageSize);}

    public SuiteHead selectByPrimaryKey(String suiteId) {
        return suiteHeadMapper.selectByPrimaryKey(suiteId);
    }

    
    public int updateByPrimaryKeySelective(SuiteHead record) {
        return suiteHeadMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(SuiteHead record) {
        return suiteHeadMapper.updateByPrimaryKey(record);
    }

}
